﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Babelfish.Css;

namespace Babelfish.CSS
{
    /// <summary>
    /// 
    /// </summary>
    public class CssDocument : CssNode, INodeDocument
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CssDocument"/> class.
        /// </summary>
        /// <param name="cssString">The CSS string.</param>
        public CssDocument(string cssString)
        {
            Entity = new Entity { Name="#CSS.DOCUMENT", Children = CssParser.Parse(cssString),Type = EntityType.Document };
        }
    }
}
